import java.util.Scanner;
import java.util.Random;
import java.util.ArrayList;

public class WordScramble
{
	//random
	Random rand = new Random(); 
	public WordScramble(){}

	public char[]swap (char[]my_arr)
	{
		//length of the array given
		int length = my_arr.length;
		
		//Randomise the characters
		for(int i = 0 ; i < length ; i++) 
		{
			int index1 = rand.nextInt(length);
			int index2 = rand.nextInt(length);
			char temp = ' ';
			temp = my_arr[index1]; //inserts the chars
			my_arr[index1] = my_arr[index2];//inserts for chars
			my_arr[index2] = temp;
		}
		return my_arr;
	}	
}
